package com.zero;

public class Main {

    public static void main(String[] args) {
	// write your code here
        StringBuffer bf1 = new StringBuffer();
        //拼接
        bf1.append("小楼一夜听春雨");
        bf1.append("好湿好湿");
        System.out.println(bf1);
        //反转
        System.out.println(bf1.reverse());
        //删除
        System.out.println(bf1.delete(3,4));
        //插入
        System.out.println(bf1.insert(3,"hao"));
        //容量
        System.out.println(bf1.capacity());
        //截取
        System.out.println(bf1.substring(5));
        System.out.println(bf1.substring(3,5));
    }
}
